package com.yzy.fly.boot.log;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yzy.fly.kernel.model.FlyBasicModel;
import com.yzy.fly.util.DateUtil;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

//@FlyController
//@FlyMapper
@Data
@TableName(value = "fly_app_log")
public class FlyAppLog extends FlyBasicModel<Long, FlyAppLog> {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String appId;
    private String startupId;
    private String startAppClassName;
    private String primarySourceClassName;
    private String majorVersion;//主版本号
    private String minorVersion;//次版本号
    private String patchVersion;//修订号
    private String publishStatus;//发布状态

    private String fullVersion;

    private String copyrightYear;//版权年份

    private String pid;
    private String hostName;
    private String serverName;
    private String port;

    @DateTimeFormat(pattern = DateUtil.DateFormatPattern.yyyy_MM_dd_HH_mm_ss)
    @JsonFormat(pattern = DateUtil.DateFormatPattern.yyyy_MM_dd_HH_mm_ss)
    @JSONField(format = DateUtil.DateFormatPattern.yyyy_MM_dd_HH_mm_ss)
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @DateTimeFormat(pattern = DateUtil.DateFormatPattern.yyyy_MM_dd_HH_mm_ss)
    @JsonFormat(pattern = DateUtil.DateFormatPattern.yyyy_MM_dd_HH_mm_ss)
    @JSONField(format = DateUtil.DateFormatPattern.yyyy_MM_dd_HH_mm_ss)
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

}

